// EcoModeler - C# Edition :: Version 9.16 build 3301
using System;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using Eco.Services;
using Eco.ObjectRepresentation;
using Eco.ObjectImplementation;
using Eco.UmlRt;
using Eco.UmlCodeAttributes;
using Eco.Subscription;

namespace TTServer
{
	#region MM_ECO_Generated
	#region Attributes
	[UmlElement(Id="{efa07fbf-4e48-4f37-8d7b-e70281697603}")]
	#endregion

	#region Documentation
	//1 Basisklasse von Personen
	/// Abstrakte Klasse, die Basisklasse der Klassen
	/// Person und Firma ist.
	#endregion

	#endregion
	public abstract class JurisischePerson: TTServerObject
	{
		#region MM_ECO AutoGenerated ECO code

		new public struct Eco_LoopbackIndices
		{
			public const int Eco_FirstMember = TTServer.TTServerObject.Eco_LoopbackIndices.Eco_MemberCount;
			public const int Eco_MemberCount = (Eco_FirstMember + 3);
			public const int Bemerkung_MemberIndex = Eco_FirstMember + 0;
			public const int Info_MemberIndex = Eco_FirstMember + 1;
			public const int Land_MemberIndex = Eco_FirstMember + 2;
		}
		#endregion

		#region MM_ECO Model owned attributes
		//Note: Do not remove any property within this region, nor change its signature

		#region MM_ECO_Generated
		#region Attributes
		[UmlElement(Index=(JurisischePerson.Eco_LoopbackIndices.Bemerkung_MemberIndex), Id="{e9cb9968-a4b3-4fe6-82b3-37a89fdd1def}")]
		[UmlTaggedValue("Eco.Length", "10000")]
		#endregion

		#region Documentation
		//1 Bemerkung zu einer Person
		/// Feld in dem man eine Bemerkung zu der Person
		/// ablegen kann.
		#endregion

		#endregion
		public string Bemerkung
		{
			get
			{
				#region MM_ECO_Generated
				return (string) (this.eco_Content.get_MemberByIndex(Eco_LoopbackIndices.Bemerkung_MemberIndex));
				#endregion
			}
			set
			{
				#region MM_ECO_Generated
				this.eco_Content.set_MemberByIndex(Eco_LoopbackIndices.Bemerkung_MemberIndex, ((object)(value)));
				#endregion
			}
		}

		#region MM_ECO_Generated
		[UmlElement("AssociationEnd", Index=(JurisischePerson.Eco_LoopbackIndices.Info_MemberIndex), Id="{cf4e5bba-902b-4bd6-b866-17be66edc4b2}")]
		[UmlMetaAttribute("association", typeof(TTServerPackage.PersonInfo), Index=1)]
		[UmlMetaAttribute("multiplicity", "0..*")]
		[UmlTaggedValue("Eco.Embed", "False")]
		#endregion
		public IEcoList<Info> Info
		{
			get
			{
				#region MM_ECO_Generated
				return new ObjectListAdapter<Info>((IList) (this.eco_Content.get_MemberByIndex(Eco_LoopbackIndices.Info_MemberIndex)));
				#endregion
			}
		}

		#region MM_ECO_Generated
		[UmlElement("AssociationEnd", Index=(JurisischePerson.Eco_LoopbackIndices.Land_MemberIndex), Id="{6ea263b0-2299-420a-aacb-84f11433f9aa}")]
		[UmlMetaAttribute("association", typeof(TTServerPackage.Nationalitaet), Index=0)]
		[UmlMetaAttribute("multiplicity", "0..1")]
		[UmlTaggedValue("Eco.Embed", "True")]
		#endregion
		public TTServer.Land Land
		{
			get
			{
				#region MM_ECO_Generated
				return (TTServer.Land) (this.eco_Content.get_MemberByIndex(Eco_LoopbackIndices.Land_MemberIndex));
				#endregion
			}
			set
			{
				#region MM_ECO_Generated
				this.eco_Content.set_MemberByIndex(Eco_LoopbackIndices.Land_MemberIndex, ((object)(value)));
				#endregion
			}
		}

		#endregion

		#region MM_ECO Model owned methods
		//Note: Do not remove any method within this region, nor change its signature

		public JurisischePerson(IContent content) : base(content)
		{
			#region MM_ECO_Generated
			#endregion
		}

		public JurisischePerson(IEcoServiceProvider serviceProvider) : base(serviceProvider)
		{
			try
			{
				// Place user code ONLY here
			}
			catch (System.Exception)
			{
				this.Deinitialize(serviceProvider);
				throw;
			}
		}
		#endregion
	}
}
